<%@ Control Language="vb" AutoEventWireup="false" Explicit ="true"  codefile="inc_list.ascx.vb" Inherits="NVPortal.Modules.NVVideos.inc_list" %>

<table style="width: 100%;" cellpadding="0" cellspacing="0">
    <tr>
        <td><asp:HyperLink id="lbtAddTop" runat="server" Font-Bold="True"><img border="0" src="/images/Athemmoi.jpg" alt="" /></asp:HyperLink></td>
    </tr>
    <tr><td></td></tr>
    <tr><td>
    <asp:DataGrid DataKeyField ='VideoId' id="drgViewData" runat="server" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px"
	BackColor="White" CellPadding="3" AutoGenerateColumns="False" Width="100%">
	<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#669999"></SelectedItemStyle>
	<ItemStyle ForeColor="#000066" Font-Names="Arial" Font-Size="12px"></ItemStyle>
	<HeaderStyle Font-Bold="True" ForeColor="White" Font-Names="arial" Font-Size="12px" BackColor="#006699"></HeaderStyle>
	<FooterStyle ForeColor="#000066" BackColor="White"></FooterStyle>
	<Columns>
	    <asp:TemplateColumn HeaderText="Ảnh">
            <ItemTemplate>
                <asp:Image width="60" ImageUrl ='<%# DataBinder.Eval(Container.DataItem, "imagepath") %>' AlternateText="" ID="imgNews" runat="server" />
            </ItemTemplate>
            <ItemStyle Width="60" />
        </asp:TemplateColumn>
		<asp:BoundColumn DataField="Title" HeaderText="Tiêu đề"></asp:BoundColumn>
        <asp:TemplateColumn HeaderText="Trạng th&#225;i">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# iif(DataBinder.Eval(Container.DataItem, "isvisible")="True","Hiển thị","Ẩn") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="Youtube">
            <ItemTemplate>
                <asp:Label ID="Label1" runat="server" Text='<%# iif(DataBinder.Eval(Container.DataItem, "Youtube")="True","Có","Không") %>'></asp:Label>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="Thứ tự">
            <ItemTemplate>
                <asp:TextBox ID="txtOrderNumber" Width="40" Text ='<%# DataBinder.Eval(Container.DataItem,"OrderNumber") %>' runat="server"></asp:TextBox>
            </ItemTemplate>
        </asp:TemplateColumn>
        <asp:TemplateColumn HeaderText="Sửa">
			<ItemTemplate>
				<asp:HyperLink id="Hyperlink1" NavigateUrl='<%# "/tabid/" & tabid & "/view/edit/ItemID/" & DataBinder.Eval(Container.DataItem,"VideoId") & "/index.htm"%>' runat="server" >
					<asp:Image id="editLinkImage" ImageUrl="~/images/edit.gif" AlternateText="Edit" Runat="server" />
				</asp:HyperLink>
			</ItemTemplate>
		</asp:TemplateColumn>
	</Columns>
	<PagerStyle HorizontalAlign="Left" ForeColor="#000066" BackColor="White" Mode="NumericPages"></PagerStyle>
</asp:DataGrid></td></tr>
    <tr><td></td></tr>
    <tr><td>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td><asp:HyperLink id="hplbottom" runat="server" Font-Bold="True"><img border="0" src="/images/Athemmoi.jpg" alt="" /></asp:HyperLink></td>
            <td width="40"></td>
            <td></td>
            <td><asp:LinkButton id="lbtUpdateOrder" runat="server" Font-Bold="True"><img border="0" src="/images/Acapnhatthutu.jpg" title="Cập nhật thứ tự" /></asp:LinkButton></td>
        </tr>
    </table>
    
    
    
    </td></tr>
</table>
